package com.pep.mgmt.repo;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import com.pep.mgmt.model.entity.RunningEntity;

import jakarta.transaction.Transactional;
import java.util.List;


public interface RunningProgramRepo extends JpaRepository<RunningEntity, Long> {


    @Transactional
	@Modifying
    //@Query("delete from VlanEntity vlanEntity where (vlanEntity.vlanId = ?1)")
    void deleteAllByVrfName(String vrfName);

    List<RunningEntity> findAllByVrfName(String vrfName);

    Long countByVrfName(String vrfName);

}
